package com.example.service.impl;

import com.example.service.ISysService;
import com.example.util.DictUtils;
import com.example.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wsl
 */
@Service
public class SysServiceImpl implements ISysService {

    @Autowired
    private DictUtils dictUtils;

    @Override
    public ResultVo queryFontSysCache() {
        Map<String, Object> sysParamts = new HashMap<>();
        Object dictValueMap = dictUtils.getDictValueMap();
        Object dictTypeMap = dictUtils.getDictTypeMap();
        sysParamts.put("dictValueMap",dictValueMap);
        sysParamts.put("dictTypeMap",dictTypeMap);
        return ResultVo.response(sysParamts);
    }
}
